<?php
class Game_getServersByPlatform {

	function getServersByPlatform($game, $platform) {
		$game = MooObj::get('Game')->transportGame($game);
		$gameinfoConf = MooObj::get('Game')->getGameConf();

		$pageNameArr = array();
		if($gameinfoConf[$game]['serverIds'][$platform]){
			$pageNameArr['servers'] = $gameinfoConf[$game]['serverIds'][$platform];
		}else {
			$serverNum = $gameinfoConf[$game]['serverNum'][$platform];
			for($i = 1; $i <= $serverNum; $i ++) {
				$pageNameArr['servers'][] = $i;
			}
		}	
	
		return $pageNameArr;
	}
}
